package com.hdax.easybuy.dao;

import com.hdax.easybuy.entity.Product;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProductDao extends JpaRepository<Product,Integer> {
    //根据分类表中的id去商品表中找categorylevel1id相对应的商品
    public List<Product> findByCategoryLevel1Id(int id);
}
